package com.erp.freight.controller;

import com.erp.freight.domain.EjfLogisticsProductInfo;
import com.erp.freight.mapper.EjfLogisticsProductInfoMapper;
import com.ruoyi.common.core.domain.R;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequiredArgsConstructor
@RestController
@RequestMapping("/purchase/ejfCorrelation")
@Slf4j
public class EJFCorrelationController {

    private final EjfLogisticsProductInfoMapper productInfoMapper;

    /**
     * 获取燕文物流产品列表
     */
    @GetMapping("/getEjfProductList")
    public R<Object> getEjfProductList() {
        List<EjfLogisticsProductInfo> productInfoList = productInfoMapper.selectList();
        return R.ok(productInfoList);
    }


}
